#ifndef CHESSBOARDIMP_H
#define CHESSBOARDIMP_H
#include <QPoint>
#include <QPoint>
#include <QPainter>
#include <string>
#include <map>
class ChessBoardWidget;
class ChessBoardImp{
public:
    ChessBoardImp(){}
    ChessBoardImp(const char* filename){
        loadFile(filename);
    }
    virtual void loadFile(const char *filename);
    virtual int getAttribute(std::string);
    virtual void setAttribute(std::string,int);
    virtual void paintBoard(ChessBoardWidget*)=0;
    virtual QPoint getPosition(QPoint&)=0;
protected:
   std::map<std::string,int>_attributes;
};

#endif // CHESSBOARDIMP_H
